package constant.milk.cashbook.apt;

import java.util.HashMap;

import android.content.Context;
import constant.milk.cashbook.database.DbAdapter;
import constant.milk.cashbook.database.DbInsertQuery;

public class ChungcheongnamdoSetting
{
	private DbInsertQuery insertQuery;
	
	public ChungcheongnamdoSetting(Context context, DbAdapter db)
	{
		insertQuery = new DbInsertQuery(context, db);
	}
	
	public void Setting() throws Exception
	{
		setData("계룡시", "170", "132");
		setData("공주시", "182", "131");
		setData("금산군", "154", "114");
		setData("논산시", "149", "107");
		setData("당진시", "199", "138");
		setData("보령시", "171", "126");
		setData("부여군", "166", "106");
		setData("서산시", "171", "131");
		setData("서천군", "112", "61");
		setData("아산시", "211", "153");
		setData("예산군", "152", "101");
		setData("천안시 동남구", "184", "139");
		setData("천안시 서북구", "195", "155");
		setData("청양군", "145", "86");
		setData("태안군", "122", "79");
		setData("홍성군", "151", "108");
	}
	
	private void setData(String name, String meib, String junse) throws Exception
	{
		HashMap<String, String> map = new HashMap<String, String>();
		
		map.put("title", "충청남도");
		map.put("name", name);
		map.put("meib", meib);
		map.put("junse", junse);
		
		insertQuery.setAptData(map);
	}
}
